package cn.format.b.lement;

import java.util.Iterator;

/**
 * @author zgwangbo@simplemain.com
 */
public class JsonNumber extends JsonElement {
    private String string;

    public JsonNumber(String s) {
        string = s;
    }

    public String toString() {
        return string;
    }

    @Override
    public Iterator<Token> iterator() {
        return new SimpleIterator(new Token(string, Token.TYPE_NUMBER, level));
    }
}
